<template>
	<view class="video" :style="{ marginTop: source.margin + 'px', marginBottom: source.margin2 + 'px' }">
		<video id="myVideo" :src="source.video_src" controls :poster="source.img.url"></video>		
	</view>
</template>

<script>
	export default {
		props: {
			source: [Object]
		}
	}
</script>

<style lang="less" scoped>
.video {
	video {
		width: 100%;
		display: block;
	}
}
</style>
